package com.yaps.petstore.stateless.catalog;

import com.yaps.petstore.entity.catalog.Category;
import com.yaps.petstore.entity.catalog.Item;
import com.yaps.petstore.entity.catalog.Product;

import javax.ejb.Local;
import java.util.List;

/**
 * @author Antonio Goncalves
 */
@Local
public interface CatalogLocal {

    // ======================================
    // =          Methodes publiques        =
    // ======================================
    Category findCategory(Long categoryId) ;

    Product findProduct(Long productId) ;

    Item findItem(Long itemId) ;

    List<Item> searchItems(String keyword) ;
}